package cn.ronghuanet.basic.util;


public class AjaxResult {

    private Boolean success = true;    // true false 表明操作是否成功
    private String message = "操作成功!"; // 提示信息
    private Object resultObj;   // 返回的对象,对象类型不能写死,因为除了部门以外,还有员工 权限  角色等都需要进行返回的

    public static AjaxResult me(){
        return new AjaxResult();
    }

    public Boolean getSuccess() {
        return success;
    }

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;    // this谁调用我,我就返回谁
    }

    public String getMessage() {
        return message;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }

    public Object getResultObj() {
        return resultObj;
    }

    public AjaxResult setResultObj(Object resultObj) {
        this.resultObj = resultObj;
        return this;
    }
}
